﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="EditShowreel.aspx.vb" Inherits="_3dBuzz.EditShowreel" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        Welcome &nbsp;
        <asp:TextBox ID="tb_UserName" runat="server" Enabled="False"></asp:TextBox>
    </p>
    <p>
    You may edit the title and description of your showreel here.</p>
    <p>
        Select the showreel to edit:</p>
    <p>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" >
            <Columns>
                <asp:BoundField DataField="Title" HeaderText="Title" SortExpression="Title" />
                <asp:BoundField DataField="Description" HeaderText="Description" 
                    SortExpression="Description" />
                <asp:BoundField DataField="OriginalFilename" HeaderText="OriginalFilename" 
                    SortExpression="OriginalFilename" />
                <asp:HyperLinkField DataNavigateUrlFields="VideoId" 
                    DataNavigateUrlFormatString="EditSelectedVideo.aspx?VideoId={0}" 
                    HeaderText="Select Video" Text="Edit" />
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:3dBuzzDatabase %>" 
            ProviderName="<%$ ConnectionStrings:3dBuzzDatabase.ProviderName %>" 
            SelectCommand="SELECT * FROM [Video] WHERE ([ArtistId] = ?)">
            <SelectParameters>
                <asp:QueryStringParameter Name="ArtistId" QueryStringField="ArtistId" 
                    Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
    </p>
<p>
    &nbsp;</p>
<p>
    &nbsp;</p>
<p>
    &nbsp;</p>
</asp:Content>
